﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cesave.Domain.PermisosModule.Entities;

namespace Cesave.Domain.PermisosModule.Contracts.Modulos
{
	public interface IModuloService
		: IDisposable
	{
		/// <summary>
		/// 
		/// </summary>
		/// <param name="modulo"></param>
		void AddModulo(Modulo modulo);

		/// <summary>
		/// 
		/// </summary>
		/// <param name="modulo"></param>
		void ChangeModulo(Modulo modulo);

		/// <summary>
		/// 
		/// </summary>
		/// <param name="juntaGuid"></param>
		/// <returns></returns>
		List<Modulo> FindModulosByJunta(Guid juntaGuid);

		/// <summary>
		/// 
		/// </summary>
		/// <param name="juntaGuid"></param>
		/// <param name="status"></param>
		/// <returns></returns>
		List<Modulo> FindModulosByJuntaAndStatus(Guid juntaGuid, bool status = true);
	}
}
